
<div class="horizontal_block">
    <?php
        if($template->get('aParentCategories'))
        {
            echo "<ul>";
            foreach($template->get('aParentCategories') as $aCategory)
            {
                if(is_array($aCategory))
                {
                    $sHref = (isset($aCategory['categoryname']) ? $aCategory['categoryname'] : $aCategory[1]);
                    $sName = (isset($aCategory['name']) ? $aCategory['name'] : $aCategory[0]);
                    echo '<li><a href="'.$sHref.'">'.$sName.'</a></li>';
                }
            }
            echo '<li><a>'.$template->get('sCurrentCategoryName').'</a></li>';
            if($template->get('isEdit'))
            {
                echo '<li style="float:right;" class="bt_edit_product">
                        <a href="'.URL::getLink('product/edit/'.$template->get('sId')).'">
                            <img style="margin-top:4px;" src="'.URL::getLink('image/edit').'">
                        </a>
                     </li>'; 
            }
            echo "</ul>";
            echo '<div style="clear:both;"></div>';
        }
    ?>
</div>